'use strict';

const Service = require('egg').Service;

class LoginService extends Service {
  constructor(ctx) {
    super(ctx);
  }
  async signIn(post) {
    return await this.ctx.model.User.findOne(post);
  }
}

module.exports = LoginService;